package com.chaodriod.flyviewpager.indicator

import android.view.View
import android.view.ViewGroup
import com.chaodriod.flyviewpager.indicator.adapter.IndicatorAdapter

/**
 * Created by CHEN on 2018-5-6.
 */

interface Indicator {


    /**
     * 在ViewPager.OnPageChangeListener.onPageSelected 中 调用此方法
     * 使Indicator 与 ViewPager 的切换同步
     */
    fun setCurrentItem(position: Int)

    fun getItem(position: Int): View

    fun getAdapter(): IndicatorAdapter

    fun init(container: ViewGroup)

}
